100 |
How can I remove a bookmark
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("Bookmark",2,.T.) oEdit:SetProperty("Bookmark",2,.F.) oEdit:BookmarkWidth := 16 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
99 |
How can I remove all bookmarks
|
98 |
How can I add a bookmark
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("Bookmark",2,.T.) oEdit:SetProperty("Bookmark",4,.T.) oEdit:BookmarkWidth := 16 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
97 |
How can I change the format to display the numbers
|
96 |
Is there any option to change the color for the line that displays the cursor or the caret
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("BackColorCaretLine",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
95 |
Can I display the lines using an alternate color
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("BackColorAlternate",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
94 |
How can I disable or enable displaying the Replace dialog
|
93 |
Does your control support incrementasl search
|
92 |
How can I programmatically find or search for a word only
|
91 |
How can I programmatically find or search for a string
|
90 |
How can I disable or enabled the Find dialog
|
89 |
How can I enable my button as the control can perform an REDO operation
|
88 |
How can I enable my button as the control can perform an UNDO operation
|
87 |
How can I disable or enable the undo-redo feature
|
86 |
How can I change the color for the border where the line numbers are displayed
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("LineNumberForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oEdit:SetProperty("LineNumberBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 0,0,255 } ) , .F. )) oEdit:LineNumberWidth := 32 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
85 |
How can I change the color of the bookmark border
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("BookMarkBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oEdit:SetProperty("BookMarkBackColor2",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oEdit:BookmarkWidth := 16 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
84 |
How can I refresh the control
|
83 |
How can I change the size of the tabs characters
|
82 |
I've seen that if I press CTRL + ( I get the matching braket. How can I extend this
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:OpenBrackets := "<" oEdit:CloseBrackets := ">" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
81 |
How can I hide the selection
|
80 |
How can I display both scroll bars
|
79 |
How can I display only the vertical scroll bar
|
78 |
How can I display only the horizontal scroll bar
|
77 |
How can I hide the control's scroll bars
|
76 |
How can I insert at specified position a new line
|
75 |
How can I remove or delete all lines
|
74 |
How can I remove or delete a line
|
73 |
How do I change the character where the caret or the cursor is displayed
|
72 |
How do I change the line where the caret or the cursor is displayed
|
71 |
How do I replace a line
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("TextLine",1,"new line") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
70 |
How do I get a line
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("TextLine",1,"new line") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
69 |
How do I get the number of lines in the control
|
68 |
How do I get the point where the selection starts
|
67 |
How do I get the number of selected characters
|
66 |
How can I get the selected text
|
65 |
How can I replace the selected text
|
64 |
How can I avoid changing the colors for keywords or expressions
|
63 |
How can I display HTML text
|
62 |
How can I use it a a simple edit control, without highlighting
|
61 |
How can I save the text to a file
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
60 |
How can I save the text to a file
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
59 |
How can I load text from a file
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
58 |
How can I load text from a file
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
57 |
How can I display only a single line
|
56 |
How can I disable displaying multiple lines
|
55 |
How can change the color for selected text
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:HideSelection := .F. oEdit:SelLength := 10 oEdit:SetProperty("SelBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
54 |
How can change the color for selected text
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:HideSelection := .F. oEdit:SelLength := 10 oEdit:SetProperty("SelForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
53 |
How can I disable displaying the control's context menu
|
52 |
Is there any option to hide the caret or the cursor
|
51 |
How can still display the selected text when the control loses the focus
|
50 |
How can I disable adding new TAB characters when the user enters a new line
|
49 |
How can I disable using the Tab key
|
48 |
How can I hide the number of each line
|
47 |
How can I display or show the number of each line
|
46 |
How can I clear the text
|
45 |
How can I specify the text being displayed in the control
|
44 |
How can I hide the bookmark border
|
43 |
How can I show the bookmark border
|
42 |
How do I lock the control
|
41 |
How do I disable or enable the control
|
40 |
How can I change the visual appearance of the splitter
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:AllowSplitter := 3/*exBothSplitter*/ oEdit:SplitPaneWidth := 128 oEdit:SplitPaneHeight := 128 oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oEdit:SetProperty("Background",0/*exHSplitterApp*/,0x1000000) oEdit:SetProperty("Background",1/*exVSplitterApp*/,0x1000000) oEdit:SetProperty("Background",2/*exISplitterApp*/,0x2000000) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
39 |
How can I change the visual appearance of the vertical splitter
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:AllowSplitter := 3/*exBothSplitter*/ oEdit:SplitPaneWidth := 128 oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:SetProperty("Background",0/*exHSplitterApp*/,0x1000000) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
38 |
How can I change the visual appearance of the horizontal splitter
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:AllowSplitter := 3/*exBothSplitter*/ oEdit:SplitPaneHeight := 128 oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:SetProperty("Background",1/*exVSplitterApp*/,0x1000000) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
37 |
How do I change the visual aspect for thumb parts in the scroll bars, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oEdit:VisualAppearance():Add(3,"c:\exontrol\images\hot.ebn") oEdit:SetProperty("Background",388/*exHSThumb*/,0x1000000) oEdit:SetProperty("Background",389/*exHSThumbP*/,0x2000000) oEdit:SetProperty("Background",391/*exHSThumbH*/,0x3000000) oEdit:SetProperty("Background",260/*exVSThumb*/,0x1000000) oEdit:SetProperty("Background",261/*exVSThumbP*/,0x2000000) oEdit:SetProperty("Background",263/*exVSThumbH*/,0x3000000) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
36 |
How do I change the visual aspect only for the thumb in the scroll bar, using EBN
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oEdit:VisualAppearance():Add(3,"c:\exontrol\images\hot.ebn") oEdit:SetProperty("Background",388/*exHSThumb*/,0x1000000) oEdit:SetProperty("Background",389/*exHSThumbP*/,0x2000000) oEdit:SetProperty("Background",391/*exHSThumbH*/,0x3000000) oEdit:SetProperty("ScrollThumbSize",1/*exHScroll*/,96) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
35 |
I've seen that you can change the visual appearance for the scroll bar. How can I do that
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:VisualAppearance():Add(2,"c:\exontrol\images\pushed.ebn") oEdit:VisualAppearance():Add(3,"c:\exontrol\images\hot.ebn") oEdit:SetProperty("Background",324/*exSBtn*/,0x1000000) oEdit:SetProperty("Background",325/*exSBtnP*/,0x2000000) oEdit:SetProperty("Background",327/*exSBtnH*/,0x3000000) oEdit:SetProperty("Background",404/*exHSBack*/,AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oEdit:SetProperty("Background",276/*exVSBack*/,AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oEdit:SetProperty("Background",3/*exSizeGrip*/,AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
34 |
Can I change the forecolor for the tooltip
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:ToolTipDelay := 1 oEdit:ToolTipWidth := 364 oEdit:SetProperty("Background",66/*exToolTipForeColor*/,AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oEdit:AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit") oEdit:Refresh() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
33 |
Can I change the background color for the tooltip
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:ToolTipDelay := 1 oEdit:ToolTipWidth := 364 oEdit:SetProperty("Background",65/*exToolTipBackColor*/,AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oEdit:AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit") oEdit:Refresh() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
32 |
Can I change the default border of the tooltip, using your EBN files
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:ToolTipDelay := 1 oEdit:ToolTipWidth := 364 oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:SetProperty("Background",64/*exToolTipAppearance*/,0x1000000) oEdit:AddKeyword("<b>class</b>","this is a bit of text that's shown when the cursor hovers the <b>class</b> keyword.","exontrol.edit") oEdit:Refresh() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
31 |
How do I call your x-script language
|
30 |
How do I call your x-script language
|
29 |
Can I change the font for the tooltip
|
28 |
I've seen that the width of the tooltip is variable. Can I make it larger
|
27 |
How do I let the tooltip being displayed longer
|
26 |
How do I disable showing the tooltip for all control
|
25 |
How do I show the tooltip quicker
|
24 |
Can I change the order of the buttons in the scroll bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("ScrollOrderParts",1/*exHScroll*/,"t,l,r") oEdit:SetProperty("ScrollOrderParts",0/*exVScroll*/,"t,l,r") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
23 |
The thumb size seems to be very small. Can I make it bigger
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("ScrollThumbSize",1/*exHScroll*/,164) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
22 |
How do I enlarge or change the size of the control's scrollbars
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:ScrollHeight := 18 oEdit:ScrollWidth := 18 oEdit:ScrollButtonWidth := 18 oEdit:ScrollButtonHeight := 18 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
21 |
How can I display my text on the scroll bar, using a different font
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("ScrollPartCaption",1/*exHScroll*/,256/*exThumbPart*/,"This is just a text") oEdit:ScrollFont(1/*exHScroll*/):Size := 12 oEdit:SetProperty("ScrollThumbSize",1/*exHScroll*/,128) oEdit:ScrollHeight := 24 oEdit:SetProperty("ScrollPartCaption",1/*exHScroll*/,256/*exThumbPart*/,"This is <s><font Tahoma;12> just </font></s> text") oEdit:ScrollHeight := 20 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
20 |
How can I display my text on the scroll bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("ScrollPartCaption",1/*exHScroll*/,256/*exThumbPart*/,"this is just a text") oEdit:SetProperty("ScrollThumbSize",1/*exHScroll*/,96) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
19 |
How do I assign a tooltip to a scrollbar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:SetProperty("ScrollToolTip",1/*exHScroll*/,"This is a <img>0x1000000</img>tooltip being shown when you click and drag the thumb in the horizontal scroll bar") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
18 |
How do I assign an icon to the button in the scrollbar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=") oEdit:SetProperty("ScrollPartVisible",1/*exHScroll*/,32768/*exLeftB1Part*/,.T.) oEdit:SetProperty("ScrollPartCaption",1/*exHScroll*/,32768/*exLeftB1Part*/,"<img>1</img>") oEdit:ScrollHeight := 18 oEdit:ScrollButtonWidth := 18 oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
17 |
I need to add a button in the scroll bar. Is this possible
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("ScrollPartVisible",1/*exHScroll*/,32768/*exLeftB1Part*/,.T.) oEdit:SetProperty("ScrollPartCaption",1/*exHScroll*/,32768/*exLeftB1Part*/,"1") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
16 |
Can I display an additional buttons in the scroll bar
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("ScrollPartVisible",1/*exHScroll*/,32768/*exLeftB1Part*/,.T.) oEdit:SetProperty("ScrollPartVisible",1/*exHScroll*/,16384/*exLeftB2Part*/,.T.) oEdit:SetProperty("ScrollPartVisible",1/*exHScroll*/,1/*exRightB6Part*/,.T.) oEdit:SetProperty("ScrollPartVisible",1/*exHScroll*/,2/*exRightB5Part*/,.T.) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
15 |
How do I change the control's foreground color
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("ForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
14 |
How do I change the control's background color
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:SetProperty("BackColor",AutomationTranslateColor( GraMakeRGBColor ( { 200,200,200 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
13 |
How can I change the control's font
|
12 |
How do I put a picture on the center of the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Picture := oEdit:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oEdit:PictureDisplay := 17/*exMiddleCenter*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
11 |
How do I resize/stretch a picture on the control's background
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Picture := oEdit:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oEdit:PictureDisplay := 49/*exStretch*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
10 |
How do I put a picture on the control's center right bottom side
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Picture := oEdit:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oEdit:PictureDisplay := 34/*exLowerRight*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
9 |
How do I put a picture on the control's center left bottom side
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Picture := oEdit:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oEdit:PictureDisplay := 32/*exLowerLeft*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
8 |
How do I put a picture on the control's center top side
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Picture := oEdit:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oEdit:PictureDisplay := 1/*exUpperCenter*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
7 |
How do I put a picture on the control's right top corner
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Picture := oEdit:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oEdit:PictureDisplay := 2/*exUpperRight*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
6 |
How do I put a picture on the control's left top corner
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:Picture := oEdit:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oEdit:PictureDisplay := 0/*exUpperLeft*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
5 |
How do I put a picture on the control's background
|
4 |
How do I change the control's border, using your EBN files
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oEdit oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oEdit := XbpActiveXControl():new( oForm:drawingArea ) oEdit:CLSID := "Exontrol.Edit.1" /*{39136531-DD0F-4281-B445-E36FC2CDDBC5}*/ oEdit:create(,, {10,60},{610,370} ) oEdit:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oEdit:Appearance := 16777216/*0x1000000+*/ oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
3 |
How do I remove the control's border
|
2 |
How can I add a line
|
1 |
How can I insert a line
|